package com.jill.Mapper;

import com.jill.Pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

@Mapper
public interface UserMapper{
    public List<User> findAll();


    @Select("select * from user where (username=#{username} and password=#{password}) or (mail=#{username} and password=#{password});")
    public User login(User user);
}
